//
// Created by 32827 on 2023/11/23.
//

#ifndef YZFRAME_YZ_STATUS_H
#define YZFRAME_YZ_STATUS_H
#include "yz.h"

#define YZ_PROGRAM_STATUS_SHEET_SIZE 64
enum YZ_PROGRAM_FLAG{
    YZ_FLAG_STOP=0,
    YZ_FLAG_ERROR_HANDLER_INDEX=1,//to suit YZF_GLOBAL_INDEX
    YZ_FLAG_ERROR_TYPE,
};
typedef enum YZ_PROGRAM_FLAG YZ_PROGRAM_FLAG;

YZF_GLOBAL_INDEX yz_status_sheet_get(YZ_PROGRAM_FLAG index);
YZF_GLOBAL_INDEX* yz_status_sheet_get_ptr(YZ_PROGRAM_FLAG index);
void yz_status_sheet_set(YZ_PROGRAM_FLAG index,YZF_GLOBAL_INDEX data);
#endif //YZFRAME_YZ_STATUS_H
